<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 aging.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.1
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['aging'];
include $root_path.'page_header.php';


$template->set_filenames(array(
	'body' => $root_path.$template_path.'mail/aging.tpl')
);

$age = <<<EOFpacman
<cpanel Email="getaging($FORM{'user'})">
EOFpacman;

$address = <<<EOFpacman
<cpanel print="$FORM{'user'}">
EOFpacman;

$s_hidden_vars = '<input type="hidden" name="user" value="'.$address.'">';

$template->assign_vars(array(
	'L_AGING' => $lang['aging'],
	'L_AGING_DESCRIPTION' => $lang['aging_description'],
	'L_AGING_MESSAGE' => $lang['aging_message'],
	'AGE' => $age,
	'S_HIDDEN_VARS' => $s_hidden_vars,
	'S_ACTION' => 'aging_done.php',

	'L_EMAIL_ACCOUNTS' => $lang['email_accounts'],
	)
);


//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>